import instance from './index';
import { AuthMessage } from '../model/user';

export function doLogin(data: AuthMessage): Promise<any> {
    return instance.post('/user/login', data);
}